package com.shu.exception;

/**
 *  自定义异常
 * Created by shu on 2017/8/15.
 */
public class CustomException extends Exception {

    private String msg;

    private Integer code;

    public CustomException(String msg, Integer code) {
        super(msg);
        this.msg = msg;
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
